package com.hexiang.client;

import com.hexiang.domain.CommonResponse;
import com.hexiang.domain.User;
import com.hexiang.exception.ClientException;

import java.io.Serializable;

public interface UserHttpApiClient {

    CommonResponse<Serializable> getUsers() throws ClientException;

    CommonResponse<Serializable> getUserByName(String name) throws ClientException;

    CommonResponse<Serializable> addUser(String name, int age) throws ClientException;

    CommonResponse<Serializable> deleteUserById(Long id) throws ClientException;

    CommonResponse<Serializable> updateUser(User user) throws ClientException;

    CommonResponse<Serializable> getUserPage(Integer pageNum, Integer pageSize) throws ClientException;

    CommonResponse<Serializable> errTest() throws ClientException;

}